<template>
  <div>
    <h1>测试题</h1>
    <random :list="list"></random>
  </div>
</template>

<script>
import random from './components/random.vue'
export default {
  components: {
    random,
  },
  data() {
    return {
      list: [
        {
          id: 1,
          val: '',
          panduan: '未完成',
          number1: parseInt(Math.random(Math.floor) * 10),
          number2: parseInt(Math.random(Math.floor) * 10),
        },   {
          id: 2,
          val: '',
          panduan: '未完成',
          number1: parseInt(Math.random(Math.floor) * 10),
          number2: parseInt(Math.random(Math.floor) * 10),
        },   {
          id: 3,
          val: '',
          panduan: '未完成',
          number1: parseInt(Math.random(Math.floor) * 10),
          number2: parseInt(Math.random(Math.floor) * 10),
        },   {
          id: 4,
          val: '',
          panduan: '未完成',
          number1: parseInt(Math.random(Math.floor) * 10),
          number2: parseInt(Math.random(Math.floor) * 10),
        },
        {
          id: 5,
          val: '',
          panduan: '未完成',
          number1: parseInt(Math.random(Math.floor) * 10),
          number2: parseInt(Math.random(Math.floor) * 10),
        },
      ],
    }
  },
}
</script>

<style></style>
